Module-level declarations

Types

Link copied to clipboard
Link copied to clipboard
struct place
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
val LOCATIONS_TO_EXCLUDE_PARAM: text = "locations_to_exclude"
Link copied to clipboard
val log_prefix: text = "MNA_PLACEABLES"

Functions

Link copied to clipboard
function _pack_all_my_placeables_dto(account_id: byte_array, original_ids: list<byte_array>, include_placed: boolean): list<all_my_placeables_dto>
Link copied to clipboard
function _placeables_at(plot_id: integer, account_id: byte_array?): list<placeable_dto>
Link copied to clipboard
function _previously_placed(griddable_id: integer, original_id: byte_array): boolean
Link copied to clipboard
function _previously_placed_by(griddable_id: integer, original_id: byte_array, account_id: byte_array): boolean
Link copied to clipboard
function all_used_cells(elements: list<placeable_with_meta>, exclude: list<location>): set<location>
Link copied to clipboard
function already_used_cells(plot_id: integer, from_x: integer, from_y: integer, to_x: integer, to_y: integer, locations_to_exclude: list<location>): set<location>
Link copied to clipboard
@extend(check_original_placed_on_grid) function check_original_placed_on_grid(griddable_id: integer, original_id: byte_array, location: location): map<text, boolean>
Link copied to clipboard
Link copied to clipboard
function debug(msg: text)
Link copied to clipboard
function get_placed_element(current_location: location?, plot_id: integer, original_id: byte_array): placed_element?
Link copied to clipboard
function is_owner_or_previously_placed(griddable_id: integer, original_id: byte_array, account_id: byte_array): boolean
Link copied to clipboard
function locations_from_byte_array(relative_locations: byte_array): list<location>
Link copied to clipboard
function lock_placeable(account: account, original_id: byte_array)
Link copied to clipboard
function pickup(original_id: byte_array, element: placed_element)
Link copied to clipboard
function pickup_all_in_plot(plot_id: integer)
Link copied to clipboard
Link copied to clipboard
function pickup_nft(original_id: byte_array)
Link copied to clipboard
function place_element_with_time(account_id: byte_array, proximity_radius: integer, original_id: byte_array, current_location: location?, plot_id: integer, to: place?, timestamp: integer)
Link copied to clipboard
function place_elements_with_time(place_plot_action_dto: place_plot_action_dto, account_id: byte_array, timestamp: integer)
Link copied to clipboard
@extend(clear_grid_area) function remove_placeables_from_cells(cells_to_clear: set<location>, plot_id: integer)
Link copied to clipboard
Link copied to clipboard
function require_unique_relative_locations(name: text, relative_locations: list<location>)
Link copied to clipboard
function unlock_placeable(account: account, original_id: byte_array)
Link copied to clipboard
function update_fungible_placeable_prototype(name: text, relative_locations: list<location>, prototype: prototype)
Link copied to clipboard
function used_cells_for_element(relative_locations: list<location>, grid_rotation: grid_rotation, axis_x: integer, axis_y: integer): list<location>

Queries

Link copied to clipboard
@mount("placeables.all_my_placeables") query all_my_placeables(account_id: byte_array, take: integer, skip: integer): list<all_my_placeables_dto>
Link copied to clipboard
@mount("placeables.all_placeables_at") query all_placeables_at(plot_id: integer): list<placeable_dto>
Link copied to clipboard
@mount("placeables.all_unplaced_placeables") query all_unplaced_placeables(account_id: byte_array, take: integer, skip: integer): list<all_my_placeables_dto>
Link copied to clipboard
@mount("placeables.get_global_placeables_of_interface") query get_global_placeables_of_interface(interface: text): list<(original_id: byte_array, name: text, meta: placeable_meta, grid_rotation: grid_rotation, location: location, integer?, account_id: byte_array)>
Link copied to clipboard
@mount("placeables.get_placeables_configs") query get_placeables_configs(): (enabled: boolean, placing_rate: integer)
Link copied to clipboard
@mount("placeables.placeables_at") query placeables_at(plot_id: integer, account_id: byte_array): list<placeable_dto>

Operations

Link copied to clipboard
@mount("placeables.place_elements") operation place_elements(place_plot_action_dto: place_plot_action_dto, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("placeables.place_elements_as_admin") operation place_elements_as_admin(place_plot_action_dto: place_plot_action_dto, account_id: byte_array)
Link copied to clipboard
@mount("placeables.register_animal") operation register_animal(name: text, interface: text, relative_locations: list<location>)
Link copied to clipboard
@mount("placeables.register_collateralized_placeable") operation register_collateralized_placeable(name: text, relative_locations: list<location>, customizations: list<(tag: text, value: text)>, collateral_amount: integer)
Link copied to clipboard
@mount("placeables.register_non_fungible_placeable") operation register_non_fungible_placeable(interface: text, name: text, relative_locations: list<location>, customizations: list<(tag: text, value: text)>)
Link copied to clipboard
@mount("placeables.set_global_placeables_parameters") operation set_global_placeables_parameters(enabled: boolean, placing_rate_millis: integer)
Link copied to clipboard
@mount("placeables.set_placing_rate") operation set_placing_rate(millis: integer)
Link copied to clipboard
@mount("placeables.upsert_fungible_placeable") operation upsert_fungible_placeable(name: text, interface: text, relative_locations: list<location>)